#pragma once
#include "afxcmn.h"
#include "Resource.h"

// dlg_color dialog

class dlg_color : public CDialog
{
	DECLARE_DYNAMIC(dlg_color)

public:
	dlg_color(CWnd* pParent = NULL);   // standard constructor
	virtual ~dlg_color();

// Dialog Data
	enum { IDD = IDD_DIALOG_COLOR };

private:
	void CreateColorBtn();
	void CreateShadingBtn();

	CButton m_btnColor[8];
    CButton m_btnShading[9];

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
public:
	afx_msg void OnBnClickedRadioColor();
public:
	afx_msg void OnBnClickedRadioShading();
public:
	afx_msg BOOL OnNcActivate(BOOL bActive);
protected:
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
public:
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	BOOL set_theme(int themeid);
	BOOL set_color(int sat, int hue);
public:
	int m_nHue;
public:
	int m_nSat;
public:
	CSliderCtrl m_ctrlSliderHue;
public:
	CSliderCtrl m_ctrlSliderSat;
};
